457fee8e6216de9d1f3c9d09dbebe3cf97fc3681,ClassySharkWS/src/com/google/classyshark/silverghost/translator/xml/XmlDecompressor.java,XmlDecompressor,parseStrings,#DataInput#,217

Before Change


    private List<String> parseStrings(DataInput dis) throws IOException {
        int numStrings = dis.readInt();
        //skipping to the beggining of stringtable data
        dis.skipBytes(16);

        //Skipping the string offsets.
        dis.skipBytes(Integer.SIZE / 8 * numStrings);

After Change



            dis.readFully(buffer, 0, bytelen);
            packedStrings.add(new String(buffer, 0, bytelen, encoding));
            dis.skipBytes(glyphSize);//The string ends with \0. Skip it.
            bytesRead += 2 + bytelen + glyphSize;
        }
        //Align to a multiple of 4 to continue reading data.